//
//  BMSNetworkEnvironment.h
//  BMSSDK
//
//  Created by YeJary on 2025/4/28.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSUInteger, BMSNetworkEnvironmentType) {
    BMSNetworkEnvironmentTypeDevelop = 0,
    BMSNetworkEnvironmentTypeProduction =1
};

/// 提供映射函数
static inline NSString * BMSEnvironmentName(BMSNetworkEnvironmentType type) {
    switch (type) {
        case BMSNetworkEnvironmentTypeDevelop: return @"DEV";
        case BMSNetworkEnvironmentTypeProduction: return @"PRO";
    }
    return @"";
}

@interface BMSNetworkEnvironment : NSObject

@property (nonatomic, assign) BMSNetworkEnvironmentType currentEnvironment;

@property (nonatomic, copy) NSString *baseURL;

// 切换环境类型（内网开发、测试、外网正式）
- (void)switchEnvironment:(BMSNetworkEnvironmentType)envType;

// 获取当前 BaseURL（给需要动态拼接 URL 的模块用）
- (NSString *)currentBaseURL;

@end

NS_ASSUME_NONNULL_END
